#-*- coding: utf-8 -*-
from PyQt4.QtGui import *
from PyQt4.QtCore import *

class RightMenu(QWidget):
    def __init__(self,parent = None):
        super(RightMenu,self).__init__(parent)
        #self.setFixedSize(100,600)
        #self.setFont("font-size:15")
        self.setStyleSheet("QPushButton{background:red;}"
                            "QPushButton{color:blue;}"
                            "QPushButton::hover{color:white;}"
                            "QPushButton::pressed{color:black;}"
                            
                            "QPushButton::pressed{background:white;}")
        self.restartButton = QPushButton(self)
        self.restartButton.setText(self.tr("重新开始"))
        self.restartButton.setFixedSize(60,40)
        
        
        self.connect(self.restartButton,SIGNAL("clicked()"),self.restart)
    def restart(self):
        self.emit(SIGNAL("restart"))
        
        
        
        
        
        
        
        
        
        
        